<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div style='width:600px;height:400px'></div>
  <script src='https://cdnjs.cloudflare.com/ajax/libs/echarts/4.8.0/echarts.min.js'></script>
  <script>
    let pieData = [{ name: 'taobao', value: 1111 }, { name: 'jd', value: 231 }, { name: '唯品会', value: 748 }, { name: '1号店', value: 989 }, { name: '聚美优品', value: 6700 }]
    var mycharts = echarts.init(document.querySelector('div'))
    var option = {
      title: {
        text: '平台数据消费情况',
        textStyle: {
          color: 'black'
        }
      },
      series: [
        {
          type: 'pie',
          data: pieData,
        }
      ],
    }
    mycharts.setOption(option)
  </script>
</body>

</html>